package griffin.logic;

//import android.R.string;
//import android.app.PendingIntent;
import android.app.Service;
//import android.app.Notification;
//import android.app.NotificationManager;
import android.os.IBinder;
import android.os.Binder;
import android.util.Log;
//import android.widget.Toast;
import android.content.Intent;



public class localService extends Service {
	    public class LocalBinder extends Binder {
	    	localService getService() {
	            return localService.this;
	        }
	    }
	    @Override
	    public int onStartCommand(Intent intent, int flags, int startId) {
	        Log.i("LocalService", "Received start id " + startId + ": " + intent);

	        return START_STICKY;
	    }	    
//	    //public int onStartCommand(Intent intent, int flags, int startId) {
//      Intent i = new Intent("my.service.connected");
//      try {
//          conn = new MyConnection(
//              intent.getStringExtra("username"),
//              intent.getStringExtra("password"));
//          i.putExtra("succeeded", true);
//          sendBroadcast(i);
//      } catch (ConnectionException ex) {
//          i.putExtra("succeeded", false);
//          sendBroadcast(i);
//      }
//      //return START_STICKY;
//  //} 
	    
	    @Override
	    public IBinder onBind(Intent intent) {
	        return mBinder;
	    }
	    // This is the object that receives interactions from clients.  See
	    // RemoteService for a more complete example.
	    private final IBinder mBinder = new LocalBinder();
	    
//	    //------------------------
//
//
//	     @Override
//	     protected boolean isRouteDisplayed() {
//	          // TODO Auto-generated method stub
//	          return false;
//	     }
//
//	     public boolean onTouch(View v, MotionEvent event) {
//
//
//	                if (event.getAction() == MotionEvent.ACTION_DOWN) { // if the
//
//
//	                super.onTouchEvent(event);
//	                return true;
//
//	                }
//
//	        return false;
//	     } 
	    
	    
}


